<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class LearnVideoStoreRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name' => 'bail|required|string',
            'thumb' => 'bail|nullable|string',
            'poster' => 'bail|nullable|string',
            'details' => 'bail|nullable|string',
            'original_price' => 'bail|nullable|numeric',
            'price' => 'bail|nullable|numeric',
            'chapter_count' => 'bail|nullable|numeric',
            'section_count' => 'bail|nullable|numeric',
            'total_second' => 'bail|nullable|int',
            'real_view_count' => 'bail|nullable|int',
            'real_buy_count' => 'bail|nullable|int',
            'real_learn_count' => 'bail|nullable|int',
            'is_done' => 'bail|nullable|int',
            'is_active' => 'bail|nullable|int',
            'is_limited_free' => 'bail|nullable|int',
            'limited_free_end_at' => 'bail|nullable|string',
            'effective_type' => 'bail|required|int',
            'effective_days' => 'bail|nullable|int',
            'effective_hours' => 'bail|nullable|int',
            'effective_date' => 'bail|nullable|string',
        ];
    }
}
